home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / lang / eiffel / smalleif.97 / se.t / SmallEiffel / man / compile.hlp < prev    next >
Encoding:
Text File  |  1996-05-02  |  1.8 KB  |  49 lines

  1. compile [-c_code] [options] <Root-Class> <Root-Procedure>
  2.  
  3. Command `compile' is the SmallEiffel compiler.
  4. Source code is Eiffel and target Code is ANSI C code.
  5.  
  6. Execution of command `compile' has two major steps.
  7.  
  8. First Step : command `compile_to_c' is called to produce various
  9. ----------   C files (*.h and *.c). A script file is also produced
  10.              by command `compile_to_c'. The name of the script file
  11.              is also printed by command `compile_to_c' (*.make or
  12.              *.BAT on DOS for example). 
  13. Second Step : C compiling, and C linking of C files using the 
  14. -----------  script produced at first step.
  15.  
  16. Thus, command `compile' is a simple driver to call separately
  17. command `compile_to_c' and the to call the C compiler.
  18.  
  19. As command `compile_to_c', command `compile' must have at least 
  20. two arguments to indicate the starting execution point of the system.
  21. Thus, execution will start in <Root-Procedure> of <Root-Class>.
  22.  
  23. -c_code : All options of command `compile_to_c' can be used with
  24. command `compile' (they are only passed to `compile_to_c').
  25. Only the option -c_code is not passed to command `compile_to_c'.
  26. The option -c_code must be used if you want to save the produced
  27. C code. 
  28.  
  29. - Example 1 - 
  30. When SmallEiffel is correctly installed, you can simply type 
  31. the following command to test the hello world program :
  32.  
  33.    compile hello_world make
  34.  
  35. The compiler should tell you what's wrong or should compile
  36. Eiffel source files telling you the full path used for loading
  37. of Eiffel source code.
  38. On UNIX, the executable file is usually "a.out".
  39.  
  40. - Example 2 - 
  41. Type following command to finalyse the hello_world simple program :
  42.  
  43.    compile -boost -O2 hello_world make
  44.  
  45. Note that option -O2 is passed to the C compiler. Option -boost
  46. is passed to command `compile_to_c' (see compile_to_c.hlp).
  47.  
  48.  
  49.